package com.cofey.feign;

import com.cofey.remote.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by cofey on 16/8/3.
 */
@RestController
public class DemoController implements DemoService {

    @Override
    public ResVo<UserResVo> findUser(@RequestBody ReqVo<UserReqVo> vo) {
        System.out.println("vo:" + vo);
        UserResVo userResVo = new UserResVo();
        userResVo.setId("1");
        userResVo.setUserName("cofey");
        userResVo.setPassword("123456");
        ResVo<UserResVo> resVo = new ResVo<>();
        resVo.setErrcode(0);
        resVo.setErrmsg("ok");
        resVo.setResBody(userResVo);
        return resVo;
    }
}
